<jsp:useBean id="DataService" class="service.DataService" scope="session" />
<jsp:useBean id="postbackData" class="service.PostbackData" scope="request" />
<jsp:setProperty name="postbackData" property="*"/>

<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="style.css" type="text/css">
<title>Opret produktbatch</title>
</head>
<body>
	<div id="wrapper">
		<div id="header">
			<h1>Opret produktbatch</h1>
			<jsp:getProperty property="areaaccess" name="DataService" />
		</div>
		<!-- #header-->
		<div id="menu">
	<a class="menu" href="Vaerft">Vis produktbatches</a>
	&#160;&#160;&#160;&#160;&#160; <!-- 5 x space -->
	<a class="menu" href="Vaerft?page=2">Opret produktbatch</a>
	&#160;&#160;&#160;&#160;&#160; <!-- 5 x space -->
	<a class="menu" href="Vaerft?page=4">Vis råvarebatches</a>
	&#160;&#160;&#160;&#160;&#160; <!-- 5 x space -->
	<a class="menu" href="Vaerft?page=5">Opret råvarebatch</a>
		</div>
		<div id="content">
			<h2>Opret produktbatch</h2>
			<br>

			<jsp:useBean id="error" class="service.ErrorService" scope="request"></jsp:useBean>
			<jsp:getProperty property="error" name="error" />

			<form method="post">
				<br />
				<table style="border-spacing: 10px;">
					<tr>
						<td>Produktbatch ID</td>
						<td colspan="2"><input type="text" size="20" maxlength="8" name="pbId" value="<jsp:getProperty property="pbId" name="postbackData"/>"></td>
					</tr>
					<tr>
						<td>Status</td>
						<td colspan="2"><input type="text" size="20" maxlength="10" name="status" value="<jsp:getProperty property="status" name="postbackData"/>"></td>
					</tr>
					<tr>
						<td>Recept ID</td>
						<td colspan="2">
							<select name="recipeName">
								<jsp:getProperty property="recipeNames" name="DataService"/>
							</select>
						</td>
					</tr>
					</tr>
						<td></td>
						<td style="text-align: right"><a class="normal"
							href="Vaerft?page=1">Tilbage</a></td>
						<td style="text-align: right; width: 50px;"><input
							type="submit" value="Gem"></td>
					</tr>
				</table>
			</form>
		</div>
		<div id="footer"></div>
		<br>
	<p>
    <a href="http://validator.w3.org/check?uri=referer"><img
      src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Transitional" height="31" width="88"></a>
      <a href="http://jigsaw.w3.org/css-validator/check/referer">
        <img style="border:0;width:88px;height:31px"
            src="http://jigsaw.w3.org/css-validator/images/vcss"
            alt="Valid CSS!" />
    </a>
  </p>
	</div>
</body>
</html>